export default {
  path: 'service/{app}/rules',
  fields: [{
    code: 'code',
    type: 'code',
    name: '编码'
  }, {
    code: 'name',
    type: 'code',
    name: '名称'
  }, {
    code: 'exp_type',
    type: 'state',
    name: '规则类型',
    rangeset: {
      'filter': '过滤',
      'data': '数据',
      'process': '处理'
    }
  }, {
    code: 'match_mode',
    type: 'state',
    name: '匹配模式',
    rangeset: {
      'all': '全部匹配',
      'first': '首位匹配'
    }
  }, {
    code: 'memo',
    type: 'memo',
    name: '备注'
  }],
  actions: [{
    name: '新增规则',
    type: 'ruleEdit',
    code: 'ruleAdd'
  }, {
    type: 'ruleReview',
    name: '规则校验',
    icon: 'pinpoint'
  }, {
    name: '试算',
    type: 'ruleEval',
    code: 'ruleEval',
    locate: 'inline'
  }, {
    name: '编辑',
    type: 'ruleEdit',
    code: 'ruleEdit',
    locate: 'inline'
  }, {
    name: '删除',
    code: 'delete',
    type: 'process',
    icon: 'trash-b',
    path: 'service/{app}/rule',
    scope: 'rows'

  }, {
    name: '发布',
    type: 'process',
    path: 'service/{app}/rule/publish',
    scope: 'rows'
  }, {
    name: '停用',
    type: 'process',
    path: 'service/{app}/rule/seal',
    scope: 'rows'
  }]
}
